/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.elcom.emocbc;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author GiangLT
 */
public class Cbm {

    private byte msgId;
    private byte pageIndicator;
    private List<Short> pageNums = new ArrayList<Short>();
    private Short numOfPages;
    private byte msgLength;
    private byte actionCode;
    private byte numOfMenus;
    private byte[] topicId1;
    private DefaultItem defaultItem;
    private byte[] indicators;
    private byte topicId2;
    private List<MenuItem> menuItems = new ArrayList<MenuItem>();
    private byte[] separators;
    private byte contentLength;
    private byte[] content;
    private byte[] fullCbm;
    public final static byte[] SEPARATORS = new byte[]{
        (byte) 0x01,
        (byte) 0x02,
        (byte) 0x00
    };
    public final static byte[] INDICATORS1 = new byte[]{
        (byte) 0xF0,
        (byte) 0x05,
        (byte) 0x11,
        (byte) 0x03,
        (byte) 0x01,
        (byte) 0x01
    };
    public final static byte[] INDICATORS2 = new byte[]{
        (byte) 0xF0,
        (byte) 0x05,
        (byte) 0x11,
        (byte) 0x03,
        (byte) 0x02,
        (byte) 0x01
    };

    public Cbm() {
    }

    public byte getMsgId() {
        return msgId;
    }

    public void setMsgId(byte msgId) {
        this.msgId = msgId;
    }

    public byte getPageIndicator() {
        return pageIndicator;
    }

    public void setPageIndicator(byte pageIndicator) {
        this.pageIndicator = pageIndicator;
    }

    public Short getNumOfPages() {
        return numOfPages;
    }

    public void setNumOfPages(Short numOfPages) {
        this.numOfPages = numOfPages;
    }

    public byte getMsgLength() {
        return msgLength;
    }

    public void setMsgLength(byte msgLength) {
        this.msgLength = msgLength;
    }

    public byte getActionCode() {
        return actionCode;
    }

    public void setActionCode(byte actionCode) {
        this.actionCode = actionCode;
    }

    public byte getNumOfMenus() {
        return numOfMenus;
    }

    public void setNumOfMenus(byte numOfMenus) {
        this.numOfMenus = numOfMenus;
    }

    public byte[] getTopicId1() {
        return topicId1;
    }

    public void setTopicId1(byte[] topicId1) {
        this.topicId1 = topicId1;
    }

    public DefaultItem getDefaultItem() {
        return defaultItem;
    }

    public void setDefaultItem(DefaultItem defaultItem) {
        this.defaultItem = defaultItem;
    }

    public byte[] getIndicators() {
        return indicators;
    }

    public void setIndicators(byte[] indicators) {
        this.indicators = indicators;
    }

    public byte getTopicId2() {
        return topicId2;
    }

    public void setTopicId2(byte topicId2) {
        this.topicId2 = topicId2;
    }

    public List<MenuItem> getMenuItems() {
        return menuItems;
    }

    public void setMenuItems(List<MenuItem> menuItems) {
        this.menuItems = menuItems;
    }

    public byte[] getSeparators() {
        return separators;
    }

    public void setSeparators(byte[] separators) {
        this.separators = separators;
    }

    public byte getContentLength() {
        return contentLength;
    }

    public void setContentLength(byte contentLength) {
        this.contentLength = contentLength;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public byte[] getFullCbm() {
        return fullCbm;
    }

    public void setFullCbm(byte[] fullCbm) {
        this.fullCbm = fullCbm;
    }

    public List<Short> getPageNums() {
        return pageNums;
    }

    public void setPageNums(List<Short> pageNums) {
        this.pageNums = pageNums;
    }
}
